getField

abstract fun getField(object: Any, fieldID: String, fieldLabel: String, fieldDescription: String, defaultValue: String, isPassword: Boolean): String

Get a string value that is associated with the given object (account, transaction, etc) and optionally prompt the user for the value.

Parameters

object

the object with which the field is associated. If null, the field is assumed to be global to the entire data set

fieldID

the unique ID of the field, used for storing and retrieving the field value. If null, the field is not retrieved and we simply prompt the user

defaultValue

the default value to use if the field is not available from storage. If non-null, then this is used instead of prompting the user

fieldLabel

the name of the field, used as a label for the text input prompt. If null, the user will not be prompted if the value is not available.

fieldDescription

detailed text to be used if prompting the user for a value

isPassword

if true, the storage and user prompts are treated as a password (ie, not synced and prompts use password fields) prompting, if necessary